import {TypeClass} from "./TypeClass.js";

var test1 = TypeClass(document.querySelector(".test1"));
test1.setImg("./睡眠图标.svg");
test1.setText("123 test 123 1233");
test1.setType("A");
test1.setSize(1);

var test2 = TypeClass(document.querySelector(".test2"));
test2.setImg("./睡眠图标.svg");
test2.setText("123 test 123 1233");
test2.setType("A");
test2.setSize(1);

window.addEventListener("resize", () => {
    test1.setSize(1);
    test2.setSize(1);
})